<?php
use Base\AdminController;

class DictTypeController extends AdminController
{
    protected string $table = 'dict_types';

    protected string $model = "dictType";

    /**
     * 获取所有配置
     * @return void
     */
    public function getAllAction(): void
    {
        $data = DictTypeModel::query()
            ->where("is_hid",0)
            ->orderBy('sort','desc')
            ->orderBy('id','desc')
            ->get()
            ->toArray();
        $this->apiSuccess($data,"获取成功",20000);

    }
}
